<include file="Public:header" />
<link href="__PUBLIC__/Index/css/member.css" rel="stylesheet" type="text/css" />
<link href="__PUBLIC__/Index/css/style.css" rel="stylesheet" type="text/css" />
<!--导航结束-->
<!--正文开始-->
<div id="member">
<div class="uc-content-left">
			<h2 class="fyh"><a href="__URL" class="col_white">会员中心首页</a></h2>
			<dl class="uc-content-list">
				<dt>基本功能</dt>
				<dd><a href="__URL__/update">修改个人资料</a></dd>
			</dl>
			<dl class="uc-content-list magbot">
			<dt>频道管理</dt>
				<dd><a href="/index.php/House" target="__blank">发布房源</a></dd>
				<dd><a href="/index.php/BegHouse" target="__blank">发布求购求租</a></dd>
				<dd class="uon"><a href="__URL__/manage">信息管理</a></dd>
			</dl>
  </div>
  <div class="uc-content-right">
	  <div class="uc-content-right">
		  <div class="clumb"><span>当前位置：</span><a href="__URL__">会员中心首页</a><span>&gt;</span><span>管理信息</span></div>		
				<h3 class="fyh">管理信息</h3>
				<div class="newadrform">
					请选择类型：<a href="javascript:void(0)" onclick="send('1')">别墅</a>
					<a href="javascript:void(0)" onclick="send('2')">写字楼</a>
					<a href="javascript:void(0)" onclick="send('3')">商铺</a>
					<a href="javascript:void(0)" onclick="send('4')">公寓</a>
					<a href="javascript:void(0)" onclick="send('5')">整租整售</a>
					<a href="javascript:void(0)" onclick="send('6')">业主房源</a><br /><br />		
                   	<table>
				<tr>
					<th>编号</th>
					<th>房源名</th>
					<th>所属开发商</th>
					<th>操作</th>
				</tr>
				<volist name="result" id="vo">
				<tr id="obj_<{$vo.x_id}>">
					<if condition="$p eq 1">
					<td><{$vo.b_id}></td>
					<td><a href="/index.php/bieshulist/index?b_id=<{$vo.b_id}>" target="__blank"><{$vo.b_name}></a></td>
						<td><{$vo.b_developers}></td>
						<td><a href="#" onclick="deletes(<{$vo.b_id}>, 1)">删除</a>|<a href="#" onclick="updates(<{$vo.b_id}>)">修改</a></td>
					</if>
					<if condition="$p eq 2">
					<td><{$vo.x_id}></td>
					<td><a href="/index.php/xiezliloulist/index?x_id=<{$vo.x_id}>" target="__blank"><{$vo.x_name}></a></td>
						<td><{$vo.x_developers}></td>
						<td><a href="#" onclick="deletes(<{$vo.x_id}>, 2)">删除</a>|<a href="#" onclick="updates(<{$vo.x_id}>)">修改</a></td>
					</if>
					<if condition="$p eq 3">
					<td><{$vo.s_id}></td>
					<td><a href="/index.php/shangpulist/index?s_id=<{$vo.s_id}>" target="__blank"><{$vo.s_name}></a></td>
						<td><{$vo.s_developers}></td>
						<td><a href="#" onclick="deletes(<{$vo.s_id}>, 3)">删除</a>|<a href="#" onclick="updates(<{$vo.s_id}>)">修改</a></td>
					</if>
					<if condition="$p eq 4">
					<td><{$vo.g_id}></td>
					<td><a href="/index.php/gongyulist/index?g_id=<{$vo.g_id}>" target="__blank"><{$vo.g_name}></a></td>
						<td><{$vo.g_developers}></td>
						<td><a href="#" onclick="deletes(<{$vo.g_id}>, 4)">删除</a>|<a href="#" onclick="updates(<{$vo.g_id}>)">修改</a></td>
					</if>
					<if condition="$p eq 5">
					<td><{$vo.z_id}></td>
					<td><a href="/index.php/zhenglist/index?z_id=<{$vo.z_id}>" target="__blank"><{$vo.z_name}></a></td>
						<td><{$vo.z_developers}></td>
						<td><a href="#" onclick="deletes(<{$vo.z_id}>, 5)">删除</a>|<a href="#" onclick="updates(<{$vo.z_id}>)">修改</a></td>
					</if>
					<if condition="$p eq 6">
					<td><{$vo.y_id}></td>
					<td><a href="/index.php/yezhulist/index?y_id=<{$vo.y_id}>" target="__blank"><{$vo.y_name}></a></td>
						<td><{$vo.y_developers}></td>
						<td><a href="#" onclick="return deletes(<{$vo.y_id}>, 6)">删除</a>|<a href="#" onclick="updates(<{$vo.y_id}>)">修改</a></td>
					</if>	
				</tr>
				</volist>
			</table>
                    </div>
  
  </div>				
  
    		</div>
</div>
<script>
	function send(num)
	{
		window.location.href = '__URL__/manage?t='+num;
	}
	function deletes(id, t)
	{
		if(confirm('确定删除编号为'+id+'的房源?'))
		{
			$.post('__URL__/updatehouse', {id:id, t:t}, function(data)
			{
				if(data == 'success')
				{
					alert('删除成功');
					window.location.href = '__URL__/manage?t='+t;
				}
				else
				{
					alert('删除失败!');
					return false;
				}
			});
		}
	}
</script>
<include file="Public:foot" />
